package com.yuandian.management.controller;

import com.yuandian.api.management.vo.AllSystemItRoadNodeVo;
import com.yuandian.bpm.common.core.util.R;
import com.yuandian.management.service.ConfAllSystemItRoadService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 全系统IT路径图
 * @author zfsn
 * @date 2023-3-28
 */
@Api(tags = "全系统IT路径图")
@RestController
@RequestMapping("/allSystemItRoadGraph")
public class ConfAllSystemItRoadController {

	@Autowired
	private ConfAllSystemItRoadService confAllSystemItRoadService;

	/**
	 * 全系统IT路径图
	 * @return 通用返回对象
	 */
	@ApiOperation(value = "全系统IT路径图", notes = "全系统IT路径图")
	@GetMapping("/getAllItRoadGraph")
	public R<List<AllSystemItRoadNodeVo>> getAllItRoadGraph() {
		return R.ok(confAllSystemItRoadService.getAllItRoadGraph());
	}

}
